﻿using MediatR;
using THE_WIND_RISES.Common.Dtos;

namespace Production_Set.API.MaterialManagement.Add
{
    public class TasksCreateCommon: IRequest<Result>
    {
        /// <summary>
        /// 序号
        /// </summary>
        public int TasksId { get; set; }
        /// <summary>
        /// 任务编码
        /// </summary>
        public string TasksCode { get; set; }
        /// <summary>
        /// 任务名称
        /// </summary>
        public string TasksName { get; set; }
        /// <summary>
        /// 任务类型
        /// </summary>
        public int TasksType { get; set; }
        /// <summary>
        /// 任务状态
        /// </summary>
        public int TasksState { get; set; }
        /// <summary>
        /// 物料选择
        /// </summary>
        public int ChooseId { get; set; }
        /// <summary>
        /// 物料规格
        /// </summary>
        public int MaterialSpecsId { get; set; }
        /// <summary>
        /// 物料单位
        /// </summary>
        public int ItemUnitId { get; set; }
        /// <summary>
        /// 生产数量
        /// </summary>
        public int ProductionNum { get; set; }
        /// <summary>
        /// 开工时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 完工时间
        /// </summary>
        public DateTime CompletionTime { get; set; }
        /// <summary>
        /// 物料清单编码
        /// </summary>
        public string ItemManifestCode { get; set; }

        /// <summary>
        /// 物料清单版本
        /// </summary>
        public string ItemManifestVersion { get; set; }
        /// <summary>
        /// 工艺编码
        /// </summary>
        public string ProcessRouteNo { get; set; }
        /// <summary>
        /// 工艺版本
        /// </summary>
        public string ProcessVersion { get; set; }
        /// <summary>
        /// 生产入库数量
        /// </summary>
        public int InboundQuantity { get; set; } = 0;
        /// <summary>
        /// 生产退货数量
        /// </summary>
        public int NumberReturns { get; set; } = 0;
        /// <summary>
        /// 制单人
        /// </summary>
        public string Peole { get; set; }
        /// <summary>
        /// 制单部门
        /// </summary>
        public int DepartmentId { get; set; }
        /// <summary>
        /// 操作人
        /// </summary>
        public string Handle { get; set; }
        /// <summary>
        /// 操作内容
        /// </summary>
        public string HandleContext { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime HandleTime { get; set; }
        /// <summary>
        /// pid=1:创建   pid=2:审批   pid=3:删除   pid=4:修改  
        /// </summary>
        public int Pid { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }
    }
}
